package src.数据结构.队列;

public class Test01 {
    public static void main(String[] args) {
        Queue<Integer> q = new Queue<>();
        q.enqueue(1);
        q.enqueue(2);
        q.enqueue(3);
        q.enqueue(4);
        q.enqueue(5);

        System.out.println("队列大小："+q.size());
        q.show();
        System.out.println("--------------------------");
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("队列大小："+q.size());
        System.out.println("弹出元素："+q.dequeue());
        System.out.println("弹出元素："+q.dequeue());
    }
}
